<?php foreach ($posts as $post): ?>
<div class="post">
	<h3><?php echo $post->title ?></h3>
	<p><?php echo $post->content ?></p>
</div>
<?php endforeach ?>